#ifndef _OLED_SHOW_H_
#define _OLED_SHOW_H_

#include "oled.h"
#include "u8g2.h"
#include "u8x8.h"
#include "freertos/FreeRTOS.h"

typedef int (*show_content_fn_t)(u8g2_t *u8g2,int show_state,char grade);

typedef enum{
    _show1 = (1u<<1),
    _show2 = (1u<<2),
    _show3 = (1u<<3),
}show_state;


struct oled_show
{
    struct oled_i *interface;
    int show_state;                 // 显示状态
    char contnet;                // 显示内容
};

int oled_show_init(struct oled_show *self);
int oled_show_start(struct oled_show *self,show_content_fn_t show_content);
int oled_show_stop(struct oled_show *self);
int oled_show_up(struct oled_show *self);
int oled_show_down(struct oled_show *self);
int oled_show_isr(struct oled_show *self);  //中断显示

int show_content(u8g2_t *u8g2,int show_state,char grade);

#endif